﻿@{
    string? errmsg = ViewData["errmsg"] as string;
}

<form asp-action="LoginExe" method="post">
    <div class="write">
        <input class="input" name="user" required placeholder="用户名"/>
        <input class="input" type="password" name="pwd" required placeholder="密码"/>
        <input class="okButton" type="submit" value="登录"/>
        @if (errmsg is not null)
        {
            <div style="color:red">
                @errmsg
            </div>
        }
    </div>
</form>